<!DOCTYPE html>
<html lang="zh-cmn-Hans" prefix="og: http://ogp.me/ns#" class="han-init">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <title>{% if page.title %}{{ page.title }} &mdash; {% endif %}{{ site.title }}</title>
  <link rel="stylesheet" href="{{ assets_base_url }}/assets/vendor/primer-css/css/primer.css">
  <link rel="stylesheet" href="{{ assets_base_url }}/assets/css/components/collection.css">
  <link rel="stylesheet" href="{{ assets_base_url }}/assets/css/components/repo-card.css">
  <link rel="stylesheet" href="{{ assets_base_url }}/assets/css/sections/repo-list.css">
  <link rel="stylesheet" href="{{ assets_base_url }}/assets/css/components/boxed-group.css">
  <link rel="stylesheet" href="{{ assets_base_url }}/assets/css/globals/common.css">
  <link rel="stylesheet" href="{{ assets_base_url }}/assets/css/globals/responsive.css">
  <link rel="stylesheet" href="{{ assets_base_url }}/assets/css/posts/index.css">
  <link rel="stylesheet" href="{{ assets_base_url }}/assets/vendor/octicons/octicons/octicons.css">
  <link rel="stylesheet" href="{{ assets_base_url }}/assets/css/markdown/{{ site.highlight_theme }}.css">

  {% if site.components.share.enabled %}
    <link rel="stylesheet" href="{{ assets_base_url }}/assets/vendor/share.js/dist/css/share.min.css">
  {% endif %}

  <!-- Latest compiled and minified CSS -->
  {% for css in page.css %}
    <link rel="stylesheet" href="{{ assets_base_url }}/assets/css/{{css}}">
  {% endfor %}

  {% if site.ios_app_name %}
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
  {% endif %}

  <link rel="canonical" href="{{ page.url | prepend: site.url }}">
  <link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ site.url }}{{ site.subscribe_rss }}">
  <link rel="shortcut icon" href="{{ assets_base_url }}/favicon.ico">

  {% if page.title %}
    <meta property="og:title" content="{{ page.title }}">
    <meta property="twitter:title" content="{{ page.title }}">
    {% if page.keywords %}
      {% assign keywords = page.keywords %}
    {% else %}
      {% assign keywords = site.keywords %}
    {% endif %}
    <meta name="keywords" content="{{ keywords | strip_html | strip_newlines}}">
    <meta name="og:keywords" content="{{ keywords | strip_html | strip_newlines}}">
    {% if page.excerpt %}
      <meta name="description" content="{{ page.excerpt | strip_html | strip_newlines}}">
      <meta name="og:description" content="{{ page.excerpt | strip_html | strip_newlines}}">
      <meta name="twitter:description" content="{{ page.excerpt | strip_html | strip_newlines}}">
    {% else if page.description %}
      <meta name="description" content="{{ page.description | strip_html | strip_newlines}}">
      <meta name="og:description" content="{{ page.description | strip_html | strip_newlines}}">
      <meta name="twitter:description" content="{{ page.description | strip_html | strip_newlines}}">
    {% else if content %}
      <meta name="description" content="{{ content | strip_html | strip_newlines | truncatewords: 100 }}">
      <meta name="og:description" content="{{ content | strip_html | strip_newlines | truncatewords: 100 }}">
      <meta name="twitter:description" content="{{ content | strip_html | strip_newlines | truncatewords: 100 }}">
    {% endif %}
  {% else %}
    <meta name="keywords" content="{{ site.keywords }}">
    <meta name="description" content="{{ site.description }}">
  {% endif %}

  {% if page.og_image_url %}
    <meta property="og:image" content="{{ page.og_image_url }}">
  {% else %}
    {% if page.photo_url %}
      <meta property="og:image" content="{{ page.photo_url }}">
    {% endif %}
  {% endif %}

  <meta property="og:url" content="{{ site.url }}{{ page.url | remove_first:'index.html' }}">
  <meta property="og:site_name" content="{{ site.title }}">
  <meta property="og:type" content="article">
  <meta property="og:locale" content="zh_CN" />
  <meta property="twitter:url" content="{{ site.url }}{{ page.url | remove_first:'index.html' }}">
  <meta property="twitter:site_name" content="{{ site.title }}">

  {% if page.date %}
    <meta property="article:published_time" content="{{ page.date | date: '%Y-%m-%d' }}">
  {% endif %}

  <script src="{{ assets_base_url }}/assets/vendor/jquery/dist/jquery.min.js"></script>
  <script src="{{ assets_base_url }}/assets/js/jquery-ui.js"></script>
  <script src="{{ assets_base_url }}/assets/js/main.js"></script>

  {% if site.google.analytics_id %}
    <script data-ad-client="ca-pub-7093222719567591" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  {% endif %}
</head>
<body class="{{ page.class }}" data-mz="{{ page.class }}">
  <header class="site-header">
    <div class="container">
      <button class="collapsed mobile-visible" type="button" onclick="toggleMenu();">
        <svg viewBox="0 0 18 15" width="18px" height="15px">
          <path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"></path>
        </svg>
      </button>
      <nav id="site-header-nav" class="site-header-nav" role="navigation">
        {% for nav in site.navs %}
        <a href="{{ site.url }}{{ nav.href }}" class="{% if page.menu == nav.label %} selected {% endif %} site-header-nav-item" target="{{ nav.target | default: _self }}" title="{{ nav.label }}">{{ nav.label }}</a>
        {% endfor %}
      </nav>
      {% assign title = page.title %}
      {% if page.menu == '首页' %}
        {% assign title = site.title %}
      {% endif %}
      {% if page.layout == 'post' %}
        {% assign title = 'POST' %}
      {% endif %}
      <div class="site-title mobile-visible" title="{{ title }}">{{ title }}</div>
      <div class="site-header-oprate">
        {% include search.html %}
      </div>
    </div>
  </header>
  <!-- / header -->
